import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";

@Index("PK__sys_user__3213E83F5574E02C", ["id"], { unique: true })
@Index(
  "userid_system_name_system_userid",
  ["userid", "systemName", "systemUserid"],
  { unique: true }
)
@Entity("sys_user_out", { schema: "dbo" })
export class SysUserOut {
  @PrimaryGeneratedColumn({ type: "bigint", name: "id" })
  id: string;

  @Column("bigint", { name: "userid" })
  userid: string;

  @Column("nvarchar", { name: "system_name", length: 50 })
  systemName: string;

  @Column("nvarchar", { name: "system_userid", length: 50 })
  systemUserid: string;

  @Column("nvarchar", { name: "system_username", nullable: true, length: 50 })
  systemUsername: string | null;
}
